package com.meyoung.day1;

import org.testng.Assert;
import org.testng.annotations.Test;

public class TestNGDemo02 {
    //校验a == a;
    @Test
    public void assertEqualTest(){
        String a = "abcd";
        String b = "abcd";
//        Assert.assertEquals(a,b,"a不等于b");
        Assert.assertEquals(a,b);
    }
    @Test
    public void assertNotEqualTest(){
        int a = 1;
        int b = 2;
        Assert.assertNotEquals(a,b);
    }
    @Test
    public void assertNullTest(){
        String a = null;
        Assert.assertNull(a);
    }
    @Test
    public void assertNotNullTest(){
        String a = "aa";
        Assert.assertNotNull(a);
    }
}
